package com.zking.ssm.sys.service.impl;

import com.zking.ssm.sys.mapper.HotelRechargeConfigMapper;
import com.zking.ssm.sys.model.HotelRechargeConfig;
import com.zking.ssm.sys.service.IHotelRechargeConfigService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelRechargeConfigServiceImpl implements IHotelRechargeConfigService {
    @Autowired
    private HotelRechargeConfigMapper hotelRechargeConfigMapper;

    public HotelRechargeConfigServiceImpl() {
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelRechargeConfigMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelRechargeConfig record) {
        return hotelRechargeConfigMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelRechargeConfig record) {
        return hotelRechargeConfigMapper.insertSelective(record);
    }

    @Override
    public HotelRechargeConfig selectByPrimaryKey(Integer id) {
        return hotelRechargeConfigMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelRechargeConfig record) {
        return hotelRechargeConfigMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelRechargeConfig record) {
        return hotelRechargeConfigMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelRechargeConfig> list(HotelRechargeConfig hotelRechargeConfig, PageBean pageBean) {
        List<HotelRechargeConfig> hotelRechargeConfigList = hotelRechargeConfigMapper.list(hotelRechargeConfig);
        return hotelRechargeConfigList;
    }
}
